package routes

import (
	"main/src/controllers"
	"main/src/middlewares"
	"github.com/gofiber/fiber/v2"
)

func views(app *fiber.App) fiber.Router {
	views := app.Group("/", middlewares.AllRequests)
	return views
}

func PagesViews(app *fiber.App) fiber.Router {
	views := views(app)

	es2 := views.Group("/pages/", middlewares.AllRequests)
	// es2.Get("/otchet/pdchild/", controllers.RenderOtchetPDChilds)


	return es2
}

func ES2Views(app *fiber.App) fiber.Router {
	views := views(app)

	es2 := views.Group("/es2", middlewares.AllRequests)
	es2.Get("/pdchild/", controllers.RenderOtchetPDChilds)

	return es2
}